package com.lxk.pojo;

import java.util.ArrayList;
import java.util.List;

public class GoodsStatExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public GoodsStatExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andGoodsStatIdIsNull() {
            addCriterion("goods_stat_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdIsNotNull() {
            addCriterion("goods_stat_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdEqualTo(Integer value) {
            addCriterion("goods_stat_id =", value, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdNotEqualTo(Integer value) {
            addCriterion("goods_stat_id <>", value, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdGreaterThan(Integer value) {
            addCriterion("goods_stat_id >", value, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_stat_id >=", value, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdLessThan(Integer value) {
            addCriterion("goods_stat_id <", value, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_stat_id <=", value, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdIn(List<Integer> values) {
            addCriterion("goods_stat_id in", values, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdNotIn(List<Integer> values) {
            addCriterion("goods_stat_id not in", values, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_stat_id between", value1, value2, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsStatIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_stat_id not between", value1, value2, "goodsStatId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andIsUpperIsNull() {
            addCriterion("is_upper is null");
            return (Criteria) this;
        }

        public Criteria andIsUpperIsNotNull() {
            addCriterion("is_upper is not null");
            return (Criteria) this;
        }

        public Criteria andIsUpperEqualTo(Integer value) {
            addCriterion("is_upper =", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperNotEqualTo(Integer value) {
            addCriterion("is_upper <>", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperGreaterThan(Integer value) {
            addCriterion("is_upper >", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_upper >=", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperLessThan(Integer value) {
            addCriterion("is_upper <", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperLessThanOrEqualTo(Integer value) {
            addCriterion("is_upper <=", value, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperIn(List<Integer> values) {
            addCriterion("is_upper in", values, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperNotIn(List<Integer> values) {
            addCriterion("is_upper not in", values, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperBetween(Integer value1, Integer value2) {
            addCriterion("is_upper between", value1, value2, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsUpperNotBetween(Integer value1, Integer value2) {
            addCriterion("is_upper not between", value1, value2, "isUpper");
            return (Criteria) this;
        }

        public Criteria andIsVipIsNull() {
            addCriterion("is_vip is null");
            return (Criteria) this;
        }

        public Criteria andIsVipIsNotNull() {
            addCriterion("is_vip is not null");
            return (Criteria) this;
        }

        public Criteria andIsVipEqualTo(Integer value) {
            addCriterion("is_vip =", value, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipNotEqualTo(Integer value) {
            addCriterion("is_vip <>", value, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipGreaterThan(Integer value) {
            addCriterion("is_vip >", value, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_vip >=", value, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipLessThan(Integer value) {
            addCriterion("is_vip <", value, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipLessThanOrEqualTo(Integer value) {
            addCriterion("is_vip <=", value, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipIn(List<Integer> values) {
            addCriterion("is_vip in", values, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipNotIn(List<Integer> values) {
            addCriterion("is_vip not in", values, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipBetween(Integer value1, Integer value2) {
            addCriterion("is_vip between", value1, value2, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsVipNotBetween(Integer value1, Integer value2) {
            addCriterion("is_vip not between", value1, value2, "isVip");
            return (Criteria) this;
        }

        public Criteria andIsSeckillIsNull() {
            addCriterion("is_seckill is null");
            return (Criteria) this;
        }

        public Criteria andIsSeckillIsNotNull() {
            addCriterion("is_seckill is not null");
            return (Criteria) this;
        }

        public Criteria andIsSeckillEqualTo(Integer value) {
            addCriterion("is_seckill =", value, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillNotEqualTo(Integer value) {
            addCriterion("is_seckill <>", value, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillGreaterThan(Integer value) {
            addCriterion("is_seckill >", value, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_seckill >=", value, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillLessThan(Integer value) {
            addCriterion("is_seckill <", value, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillLessThanOrEqualTo(Integer value) {
            addCriterion("is_seckill <=", value, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillIn(List<Integer> values) {
            addCriterion("is_seckill in", values, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillNotIn(List<Integer> values) {
            addCriterion("is_seckill not in", values, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillBetween(Integer value1, Integer value2) {
            addCriterion("is_seckill between", value1, value2, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsSeckillNotBetween(Integer value1, Integer value2) {
            addCriterion("is_seckill not between", value1, value2, "isSeckill");
            return (Criteria) this;
        }

        public Criteria andIsAuctionIsNull() {
            addCriterion("is_auction is null");
            return (Criteria) this;
        }

        public Criteria andIsAuctionIsNotNull() {
            addCriterion("is_auction is not null");
            return (Criteria) this;
        }

        public Criteria andIsAuctionEqualTo(Integer value) {
            addCriterion("is_auction =", value, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionNotEqualTo(Integer value) {
            addCriterion("is_auction <>", value, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionGreaterThan(Integer value) {
            addCriterion("is_auction >", value, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_auction >=", value, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionLessThan(Integer value) {
            addCriterion("is_auction <", value, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionLessThanOrEqualTo(Integer value) {
            addCriterion("is_auction <=", value, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionIn(List<Integer> values) {
            addCriterion("is_auction in", values, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionNotIn(List<Integer> values) {
            addCriterion("is_auction not in", values, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionBetween(Integer value1, Integer value2) {
            addCriterion("is_auction between", value1, value2, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsAuctionNotBetween(Integer value1, Integer value2) {
            addCriterion("is_auction not between", value1, value2, "isAuction");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleIsNull() {
            addCriterion("is_onsale is null");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleIsNotNull() {
            addCriterion("is_onsale is not null");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleEqualTo(Integer value) {
            addCriterion("is_onsale =", value, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleNotEqualTo(Integer value) {
            addCriterion("is_onsale <>", value, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleGreaterThan(Integer value) {
            addCriterion("is_onsale >", value, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_onsale >=", value, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleLessThan(Integer value) {
            addCriterion("is_onsale <", value, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleLessThanOrEqualTo(Integer value) {
            addCriterion("is_onsale <=", value, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleIn(List<Integer> values) {
            addCriterion("is_onsale in", values, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleNotIn(List<Integer> values) {
            addCriterion("is_onsale not in", values, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleBetween(Integer value1, Integer value2) {
            addCriterion("is_onsale between", value1, value2, "isOnsale");
            return (Criteria) this;
        }

        public Criteria andIsOnsaleNotBetween(Integer value1, Integer value2) {
            addCriterion("is_onsale not between", value1, value2, "isOnsale");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}